package com.lagou.util;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class IPUtil {
    public static String getLocalAddress(){
        try {
            return InetAddress.getLocalHost().getHostAddress();
        } catch (UnknownHostException e) {
            return null;
        }
    }
}
